-- GENERATED SPELL FOR [Dreadmaw Crocolisk] --


function spell0_3110(pUnit, Event) --@Bad Attitude,n/a--
pUnit:FullCastSpellOnTarget(50433,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3110', 45333, 1)
end

function spell1_3110(pUnit, Event) --@Bite,n/a--
pUnit:FullCastSpellOnTarget(17255,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3110', 622, 1)
end

function spell2_3110(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3110', 0, 1)
end

function spell3_3110(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3110', 0, 1)
end

function spell4_3110(pUnit, Event) --@Muscle Tear,n/a--
pUnit:FullCastSpellOnTarget(12166,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3110', 5300, 1)
end

function Sorts_3110(pUnit, Event)
local choix_sorts_3110 = math.random(0, 4)
if choix_sorts_3110 == 0 then
pUnit:RegisterEvent('spell0_3110', 1, 1)
end
if choix_sorts_3110 == 1 then
pUnit:RegisterEvent('spell1_3110', 1, 1)
end
if choix_sorts_3110 == 2 then
pUnit:RegisterEvent('spell2_3110', 1, 1)
end
if choix_sorts_3110 == 3 then
pUnit:RegisterEvent('spell3_3110', 1, 1)
end
if choix_sorts_3110 == 4 then
pUnit:RegisterEvent('spell4_3110', 1, 1)
end
end

function mob3110_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3110', math.random(1500, 3000), 1)
end

function mob3110_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3110_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3110_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3110, 1, 'mob3110_Action')
RegisterUnitEvent(3110, 2, 'mob3110_Leave')
RegisterUnitEvent(3110, 3, 'mob3110_Kill')
RegisterUnitEvent(3110, 4, 'mob3110_Die')
